package com.jingbian.cppccbackend.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jingbian.cppccbackend.entity.PublicOpinions;
import com.jingbian.cppccbackend.entity.dto.PublicOpinionPublicDTO;
import com.jingbian.cppccbackend.entity.dto.SearchPublicOpinionDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 社情民意信息表 Mapper 接口
 * </p>
 *
 * @author yezi
 * @since 2025-04-26
 */
@Mapper
public interface PublicOpinionsMapper extends BaseMapper<PublicOpinions> {
    /**
     * 获取用户的社情民意列表
     */
    List<PublicOpinions> getPublicOpinionsByUserId(SearchPublicOpinionDTO searchDTO);

    /**
     * 获取公示的社情民意列表（带搜索条件）
     */
    List<PublicOpinions> getSearchPublicOpinion(@Param("publicOpinionPublicDTO") PublicOpinionPublicDTO publicOpinionPublicDTO);
}
